package com.fgs.common.webViewInter;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.fgs.common.WebViewActivity;


/**
 * @author fgs
 * @date 2020/4/30
 * @description
 **/
public class OpenWeb implements IOpenWeb {
    @Override
    public void openWebView(Context context, IWebInfo iWebInfo) {
        Intent intent = new Intent();
        intent.setClass(context, WebViewActivity.class);
        Bundle bundle = new Bundle();
        bundle.putString("url", iWebInfo.getWebUrl());
        bundle.putString("title", iWebInfo.getWebTitle());
        intent.putExtras(bundle);
        context.startActivity(intent);

    }
}
